package com.fushenlan.epidemicControl.annotation;

import com.fushenlan.enums.MarketCacheEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @author PC
 * @title: MarketCache
 * @projectName SpringBootDemo
 * @description: TODO
 * @date 2022/1/20 16:23
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface MarketCache {
    String value() default "";

    MarketCacheEnum cacheKeyPrefix();

    /**
     * 结果缓存时间
     *
     * @return
     */
    long cacheSeconds() default 1200L;
}
